package com.bicon.botu.medical

import com.bicon.botu.core.base.annotation.*
import org.mybatis.spring.annotation.MapperScan
import org.springframework.boot.SpringApplication
import org.springframework.boot.autoconfigure.SpringBootApplication
import org.springframework.boot.autoconfigure.data.jpa.JpaRepositoriesAutoConfiguration
import org.springframework.boot.autoconfigure.data.mongo.MongoDataAutoConfiguration
import org.springframework.boot.autoconfigure.mongo.MongoAutoConfiguration

/**
 * @author 裴志鹏
 * @date 2018/7/17 10:52
 */

@SpringBootApplication(exclude= arrayOf(MongoAutoConfiguration::class, MongoDataAutoConfiguration::class, JpaRepositoriesAutoConfiguration::class))
@EnableGlobalRedis
@EnableMyBatisPlusConfig
@MapperScan("com.bicon.botu.*.*.mapper")
//http请求日志
@EnableHttpLogAspect
//统一异常处理
@EnableGlobalExceptionHandler
//系统拦截器
@EnableSystemInterceptor
open class MedicalApplication

fun main(args: Array<String>) {
    SpringApplication.run(MedicalApplication::class.java, *args)
}